#!/bin/bash
APP_URL="https://allsuppurtvat.baharsoftbd.com/"
PROFILE="$HOME/Library/Application Support/BaharSoft/Itvata/BrowserProfile"
mkdir -p "$PROFILE"
if [ -x "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ]; then
  exec "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --app="$APP_URL" --user-data-dir="$PROFILE" --disable-http-cache
elif [ -x "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" ]; then
  exec "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge" --app="$APP_URL" --user-data-dir="$PROFILE" --disable-http-cache
else
  open "$APP_URL"
fi
